<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录之后的验证</title>
    <link rel="stylesheet" href="/css/elementUI.css">
    <script src="/js/vue.js"></script>
    <script src="/js/elementUI.js"></script>
    <script src="/js/axios.js"></script>
    <script src="/js/util.js"></script>
</head>
<body>

<div id="app">


    <el-button @click="sendMsg">验证</el-button>



</div>
<script>
    new Vue({
        el:"#app",
        data:{

            token:""
        },
        methods:{
            sendMsg(){
                axios.post("/login/yanzheng",{},{
                    headers: {
                        'token': this.token,
                    }
                }).then(res=>{

                })

            }

        },
        created(){
            this.token = localStorage.getItem("user_token")
        }
    })
</script>

</body>
</html>